<!DOCTYPE html>
{% load static%}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="shortcut icon" href="{% static 'img/logo.png' %}" type="image/x-icon"/>
    <title>PPT预览</title>
</head>
<body>
<iframe id="ppt-url" src="" data-ppt-src="{% static hotel_url %}" style="width: 100%; height: 100%;">
</iframe>
</body>
<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script>
    let url=document.location.toString();
    console.log(url)
    let ppt_url=url.split('/')[2]
    ppt_url="https://view.officeapps.live.com/op/view.aspx?src=https://"+ppt_url+$("#ppt-url").data('ppt-src');
    console.log(ppt_url)
    $('#ppt-url').attr('src',ppt_url);
</script>
</html>